package com.android.danaobank.api;


import com.android.danaobank.model.HttpResponse;
import com.android.danaobank.model.response.Advertisement;
import com.android.danaobank.model.response.MallHeadline;
import com.android.danaobank.model.response.MiddleClass;
import com.android.danaobank.model.response.ProductResponse;
import com.android.danaobank.model.response.ShopClassChildBean;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ApiService {
    @POST("api/shop/getMiddleClass.json")
    Observable<HttpResponse<List<MiddleClass>>> getMiddleClass(@Body RequestBody body);

    /**
     * banner广告
     **/
    @POST("api/advertisement/getAdvertisementByType.json")
    Observable<HttpResponse<List<Advertisement>>> getAdvertisementByType(@Body RequestBody body);

    /**
     * 商城-推荐 头条
     **/
    @POST("api/whdata/mallHeadlines.json")
    Observable<HttpResponse<List<MallHeadline>>> mallHeadlines(@Body RequestBody body);

    /**
     * 商城-推荐 商品
     **/
    @POST("api/shop/getCommentProductList.json")
    Observable<HttpResponse<ProductResponse>> getCommentProductList(@Body RequestBody body);


    /**
     * 商城-礼品 分类
     **/
    @POST("api/whWxClassRest/getNextLevel.json")
    Observable<HttpResponse<List<ShopClassChildBean>>> getNextLevel(@Body RequestBody body);

}
